<div id="top-panel">
    <div id="panel">
        <ul>
            <li><a href="<?php echo site_url("location/create"); ?>" class="report">Create</a></li>          	
        </ul>
    </div>
</div>
<div id="wrapper">
	<div id="content">
		<div id="rightnow">
			<h3 class="reallynow">Location list</h3>
			<?php if (count($location)): ?>
			<table width="100%">
				<thead>
					<tr>
						<th>Address</th>
						<th>District</th>
						<th>City</th>
						<th>Country</th>
						<th>Task</th>					
					</tr>
				</thead>
				<tbody>
					<?php foreach($location as $v): ?>
					<tr>
						<td><a class="tool" href="<?php echo site_url("location/edit/".$v['id']); ?>"><?php echo $v['address']; ?></a></div></td>
						<td><div style="padding-left:10px;"><?php echo $v['name']; ?></div></td>
						<td><div style="padding-left:10px;"><?php echo $v['city']; ?></div></td>
						<td><div style="padding-left:10px;"><?php echo $v['c_name']; ?></div></td>
						<td><div align="center"><a class="tool" href="<?php echo site_url("location/delete/".$v['id']); ?>">Delete</a></div></td>
					</tr>
					<?php endforeach; ?>
				</tbody>
			</table>
			<div id="pager">
				<?php echo $this->pagination->create_links(); ?>
			</div>
			<?php else: ?>
				<p>No data to display</p>
			<?php endif; ?>
		</div>
	</div>
</div>